package com.suray.basic.wcs.plc.enums;

/**
 * @author shaozn
 * @date 2020/3/12 - 15:30
 * @Description 网络状态枚举类
 */
public enum Network {
    ON_LINE(0, "在线"),
    OFF_LINE(1, "离线");
    private int netWorkNum;
    public String description;

    Network(int netWorkNum, String description) {
        this.netWorkNum = netWorkNum;
        this.description = description;
    }

    public int getNetWorkNum() {
        return netWorkNum;
    }

    public void setNetWorkNum(int netWorkNum) {
        this.netWorkNum = netWorkNum;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Network{" +
                "netWorkNum=" + netWorkNum +
                ", description='" + description + '\'' +
                '}';
    }
}
